# 服务器配置
server:
  port: 80

# 数据源配置
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql:///数据库名?serverTimezone=UTC
    username: root
    password: root

  # 文件上传配置
  servlet:
    multipart:
      max-file-size: 10MB
      max-request-size: 10MB
  
  # Thymeleaf配置
  thymeleaf:
    mode: HTML
    cache: false
    prefix: classpath:/templates

# MyBatis-Plus配置
mybatis-plus:
  global-config:
    db-config:
      id-type: auto
  configuration:
    map-underscore-to-camel-case: false
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

# 日志配置
logging:
  pattern:
    console: '%d{HH:mm:ss.SSS} %clr(%-5level) ---  [%-15thread] %cyan(%-50logger{50}):%msg%n'

# 自定义配置
custom:
  upload-path: /path/to/upload
  project-url: http://localhost